﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Contact.aspx.cs" Inherits="Pages_Contact" %>
    <%@ MasterType VirtualPath="~/Site.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <%--  <style type="text/css">
        .style1
        {
            width: 430px;
        }
    </style>
    <script src="../Scripts/JScript.js" type="text/javascript"></script>--%>
    <%--  <br />--%>
    <asp:Panel ID="Form" runat="server" Width="100%">
        <table style="margin-top: 10px;" border="0" cellpadding="4" cellspacing="4" width="100%">
            <tr>
                <td colspan="5" style="background-color: #EEE; color: Blue;">
                    Liên hệ với bạn quản trị:
                </td>
            </tr>
            <tr>
                <td style="width:80px;">
                    Họ tên:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtName" runat="server" Width="250px" />
                </td>
            </tr>
            <tr>
                <td>
                    Công ty:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtCompany" runat="server" Width="250px" />
                </td>
            </tr>
            <tr>
                <td>
                    Điện thoại:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtPhone" runat="server" Width="250px" onkeypress="return onlyNumbers();"></asp:TextBox>
                    <asp:RegularExpressionValidator runat="server" ID="valNumbersOnly" ControlToValidate="txtPhone"
                        Display="Dynamic" ErrorMessage="Chỉ được nhập số" ValidationExpression="(^([0-9]*|\d*\d{1}?\d*)$)"
                        ForeColor="Red">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Email:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
                    <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="txtEmail"
                        Display="Dynamic" ErrorMessage="Email sai định dạng!username@domain" ValidationExpression="(^([a-z][a-z0-9_\.]{2,32}@[a-z0-9\-]{1,}(\.[a-z]{2,4}){1,})$)"
                        ForeColor="Red">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Địa chỉ:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtAddress" runat="server" Width="250px" />
                </td>
            </tr>
            <tr>
                <td>
                    Nội dung:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtDetail" TextMode="MultiLine" runat="server" Width="250px" Height="100px" />
                </td>
            </tr>
            <tr>
                <td>
                    Mã bảo về:
                </td>
                <td class="style1">
                    <asp:TextBox ID="txtCaptcha" Width="250px" runat="server" />
                    <asp:Label ID="lblCaptcha" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <div id="Div1" style="margin-left: 40px;" runat="server">
                        <asp:Image ID="captchaImage" runat="server" />
                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Styles/Images/refresh.png"
                            OnClick="ImageButton1_Click" ToolTip="Đổi Captcha" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td class="style1">
                    <asp:Button ID="btnGui" Text="&nbsp;Gửi&nbsp;" runat="server" OnClick="btnGui_Click" class="fb_invite_button"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="Comfirm" runat="server" Height="100px" Width="100%" Visible="false">
        <div>
          <%--  <tr>
                <td>--%>
                    Bạn đã gởi yêu cầu thành công!
            <%--    </td>
            </tr>--%>
        </div>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="footer" runat="Server">
</asp:Content>
